#include "DoubleList.h"



void text()
{
	DSL* code = NULL;
	code = List_init(code);

	ListPushBack(code,1);
	ListPopBack(code);
	ListPushFront(code,2);
	ListPushFront(code,3);
	ListPushBack(code,1);
	ListPopBack(code);
	ListPopFront(code);
	ListPopFront(code);
	ListPopFront(code);

	

	List_print(code);
}
void test2()
{
	DSL* code = NULL;
	code = List_init(code);

	ListPushBack(code,1);
	ListPushFront(code,2);
	ListPushFront(code,3);

	
	List_print(code);
	List_print(ListFind(code,2));
	ListFind(code,2);


	
	printf("%d\n",code->val);

}
void test3()
{


	DSL* code = NULL;
	code = List_init(code);

	ListPushBack(code,1);
	ListPushFront(code,2);
	ListPushFront(code,3);

	ListPopBack(code);
	ListPopFront(code);
	ListInsert(ListFind(code,2),4);
	/*ListErase(ListFind(code,2));*/

	List_print(code);

}
int main()
{
	//text();
	//test2();
	test3();
	return 0;
}